//
//  DishThumbView.h
//  XRmenu
//
//  Created by loufq on 11-3-21.
//  Copyright 2011 E0571. All rights reserved.
//

#import "XRmenuBaseView.h"
#import "DishThumbFlipView.h"

@class DishThumbWrapperView;
@protocol DishThumbViewDelegate; 

@interface DishThumbView : XRmenuBaseView {
	Product* item;
	UIScrollView* wrapper;//图片对象包装方法--为将来多个图片或者视频菜谱做准备
    UIImageView* dishImageView;//单个菜图片
    UIButton* btnNewOrder;//增加份数
	UIButton* btnChangeOrder;//份数提示按钮
    UILabel* lblGoodsName;//菜名
    UILabel* lblPrice; //价格

	id<DishThumbViewDelegate> delegate;

	NSInteger displayMode; 
	//Layer
	BOOL hasSendMessage; 
	
	DishThumbFlipView* flipView;
	
	UIView* perFlipView;
	

	BOOL sendFlag;
	
	
}
@property (nonatomic, retain) DishThumbFlipView *flipView;
@property (nonatomic, assign) id<DishThumbViewDelegate> delegate;
@property (nonatomic, assign, getter=isSendFlag) BOOL sendFlag;



@property (nonatomic, retain) Product* item;
@property (nonatomic, retain)   UIScrollView *wrapper;
@property (nonatomic, retain)   UIImageView *dishImageView;
@property (nonatomic, retain)   UIButton *btnNewOrder;
@property (nonatomic, retain)   UIButton *btnChangeOrder;
@property (nonatomic, retain)   UILabel *lblGoodsName;
@property (nonatomic, retain)   UILabel *lblPrice;

-(void)setDislpayMode:(NSInteger)aDisplayMode;
-(void)showWithItem:(id)aItem;
//还原到最初状态
-(void)resumeToOriState;
@end

@protocol DishThumbViewDelegate
-(void)dishThumbView:(DishThumbView*)aDishThumbView addTapped:(UIButton*)aSender;
-(void)dishThumbView:(DishThumbView*)aDishThumbView adjustTapped:(UIButton*)aSender;
@end

